<?php echo $javascript->link('rec-index',false) ?>
<script>
var baseurl="<?php e(Configure::read('App.baseUrl'))?>";
</script>
 <div id="headbar">
      <ul >
      <li><a href='' id='delm'>批量删除</a></li>
      <li><a  href='' id='move'>审核通过--></a>
      <select id='tagType'>
      <?php
        foreach($tt as $k=>$v){
            e("<option value='$k'>$v</option>");
        }
      ?>
      </select>   
      </li>
      </ul>
 </div>
 <div id='content'>
 <table width="96%" class='list'>
 <tr>
    <th width="5%" class='rowhead'>ID</th><th>网址标题</th><th width="30%">网址url</th>
    <th width="30%">备注</th>
    <th width="8%">提交人</th>
    <th width="7%">操作</th>
 </tr>
<?php
    $baseurl=Configure::read('App.baseUrl');
    $rownum=0;
    foreach($rl as $rec){
        if($rownum % 2 == 0)
            e('<tr>');
       else
            e('<tr class="odd">');
        e("<td class='rowhead'>{$rec['Rec']['id']}</td><td class='leftalign'>{$rec['Rec']['title']}</td>
        <td class='leftalign'>{$rec['Rec']['url']}</td>
        <td class='leftalign'>{$rec['Rec']['remark']}</td>
        <td>{$rec['Rec']['username']}</td>
        <td><input type='checkbox' value={$rec['Rec']['id']}
        <a href='{$baseurl}admin/recs/del/{$rec['Rec']['id']}'>删除</a></td>");
        e('</tr>');
        $rownum++;
    }
?>
<tr><td colspan="6" style='text-align:right'><b>第
<?php 
 $cstr=$paginator->counter();
 $cstr=str_replace(' of ','页/共',$cstr);
 e($cstr);
?>
页
&nbsp
<?php e($paginator->prev('<<上一页')) ?>|
<?php e($paginator->numbers())?>|
<?php e($paginator->next('下一页>>')) ?>
</b>
</td></tr>
 </table>
 </div>
              
